package com.x86.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 风亦未止
 * @date 2022/4/12 19:27
 */
@ApiModel(value="`user`")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`user`")
public class User implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="用户id")
    private Integer id;

    @TableField(value = "`name`")
    @ApiModelProperty(value="用户名字")
    private String name;

    @TableField(value = "`password`")
    @ApiModelProperty(value="用户密码")
    private String password;

    @TableField(value = "nickname")
    @ApiModelProperty(value="用户昵名")
    private String nickname;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_PASSWORD = "password";

    public static final String COL_NICKNAME = "nickname";
}